package com.vstudy.zx.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

public class Article implements Serializable {
    private Long article_id;
    private String article_title;
    private Outline outline;
    private String article_content;
    @JSONField(format = "yyyy-MM-dd: HH:mm")
    private Date article_release_time;
    public String releaseTime; // Model
    private Teacher author;
    private Long article_zan;
    private Long article_read_count;
    private String introduction;
    private Integer article_deleted;

    public Long getArticle_id() {
        return article_id;
    }

    public void setArticle_id(Long article_id) {
        this.article_id = article_id;
    }

    public String getArticle_title() {
        return article_title;
    }

    public void setArticle_title(String article_title) {
        this.article_title = article_title;
    }

    public Outline getOutline() {
        return outline;
    }

    public void setOutline(Outline outline) {
        this.outline = outline;
    }

    public String getArticle_content() {
        return article_content;
    }

    public void setArticle_content(String article_content) {
        this.article_content = article_content;
    }

    public Date getArticle_release_time() {
        return article_release_time;
    }

    public void setArticle_release_time(Date article_release_time) {
        this.article_release_time = article_release_time;
    }

    public Teacher getAuthor() {
        return author;
    }

    public void setAuthor(Teacher author) {
        this.author = author;
    }

    public Long getArticle_zan() {
        return article_zan;
    }

    public void setArticle_zan(Long article_zan) {
        this.article_zan = article_zan;
    }

    public Long getArticle_read_count() {
        return article_read_count;
    }

    public void setArticle_read_count(Long article_read_count) {
        this.article_read_count = article_read_count;
    }

    public Integer getArticle_deleted() {
        return article_deleted;
    }

    public void setArticle_deleted(Integer article_deleted) {
        this.article_deleted = article_deleted;
    }

    public String getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Override
    public String toString() {
        return "Article{" +
                "article_id=" + article_id +
                ", article_title='" + article_title + '\'' +
                ", outline=" + outline +
                ", article_content='" + article_content + '\'' +
                ", article_release_time=" + article_release_time +
                ", author=" + author +
                ", article_zan=" + article_zan +
                ", article_read_count=" + article_read_count +
                ", article_deleted=" + article_deleted +
                '}';
    }
}
